<script type="text/javascript" src="js/systemManage/permission/permissionList.js"></script>


<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false">
    	<!-- Begin of toolbar -->
        <div id="permission-toolbar">
        	<form id="permission-queryForm">
	            <div class="index-toolbar-button">
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" onclick="systemManage.permission.permissionList.openAdd()" plain="true">添加</a>
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" onclick="systemManage.permission.permissionList.remove()" plain="true">删除</a>
	            </div>
	            <div class="index-toolbar-search">
	            	<label>权限名称：</label>
	                <input class="easyui-textbox" name="permissionName" style="width:150px"/>
	                
	                <label>权限编码：</label>
	                <input class="easyui-textbox" name="code" style="width:150px"/>
	                
	                <label>起始时间：</label><input name="startDate" class="easyui-datebox" style="width:120px"/>
	                
	                <label>结束时间：</label><input name="endDate" class="easyui-datebox" style="width:120px"/>
	                
	                <label>是否可用：</label> 
	                <select class="easyui-combobox" name="enabled" panelHeight="auto" style="width:100px">
	                	<option value="">所有</option>
	                    <option value="Y">可用</option>
	                    <option value="N">不可用</option>
	                </select>
	                
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" onclick="systemManage.permission.permissionList.queryList()">开始查询</a>
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-back" onclick="systemManage.permission.permissionList.reset()">重置</a>
	            </div>
            </form>
        </div>
        <!-- End of toolbar -->
        <table id="permission-datagrid" toolbar="#permission-toolbar"></table>
    </div>
</div>


<!-- Begin of permission-add-dialog -->
<div id="permission-add-dialog" class="easyui-dialog" data-options="closed:true,iconCls:'icon-save'" style="width:400px; padding:10px;">
   <form id="permissionAddForm" class="easyui-form" method="post">
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="permissionName" name="permissionName" style="width:80%" data-options="label:'权限名称<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,20]']">
			</div>
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="code" name="code" style="width:80%" data-options="label:'权限编码<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,20]']">
			</div>
			<div style="margin-bottom:20px">
				<label class="textbox-label textbox-label-before">是否可用<span class=requiredCls>*</span>:</label>
				<span style="margin-right:10px;"><input class="easyui-radiobutton" name="enabled" value="Y" label="是" labelWidth="20" checked=true/></span>
				<span><input class="easyui-radiobutton" name="enabled" value="N" label="否" labelWidth="20"/></span>
			</div>
	</form>		
</div>
<!-- End of permission-add-dialog -->

<!-- Begin of permission-update-dialog -->
<div id="permission-update-dialog" class="easyui-dialog" data-options="closed:true,iconCls:'icon-save'" style="width:400px; padding:10px;">
   <form id="permissionUpdateForm" class="easyui-form" method="post">
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="permissionName" name="permissionName" style="width:80%" data-options="label:'权限名称<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,20]']">
			</div>
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="code" name="code" style="width:80%" data-options="label:'权限编码<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,20]']">
			</div>
			<div style="margin-bottom:20px">
				<label class="textbox-label textbox-label-before">是否可用<span class=requiredCls>*</span>:</label>
				<span style="margin-right:10px;"><input class="easyui-radiobutton" name="enabled" value="Y" label="是" labelWidth="20" checked=true/></span>
				<span><input class="easyui-radiobutton" name="enabled" value="N" label="否" labelWidth="20"/></span>
			</div>
			<input type="hidden" name="id"/>
	</form>		
</div>
<!-- End of permission-update-dialog -->

